import { IParam } from "@/core";
import { PropType } from "vue";
export const customDropdownListProps = {
    name: {
        type: String,
        default: ''
    },
    value: {
        type: [String, Number, Object],
    },
    disabled: {
        type: Boolean,
    },
    readonly: {
        type: Boolean,
    },
    data: {
        type: Object as PropType<IParam>,
        default: () => {}
    },
    context: {
        type: Object as PropType<IParam>,
        default: () => {}
    },
    viewParams: {
        type: Object as PropType<IParam>,
        default: () => {}
    },
    multiple: {
        type: Boolean,
        default: false
    },
    url: {
        type: String,
        default: ''
    },
    method: {
        type: String as PropType< 'get' | 'post'>,
        default: 'get'
    },
    placeholder: {
        type: String,
        default: '请选择'
    },
    valueSeparator: {
        type: String,
        default: ','
    },
    urlMap: {
        type: Object as PropType<IParam>,
        default: () => {}
    },
    fieldMap: {
        type: Object as PropType<IParam>,
        default: () => {}
    },
    filterParams:{
        type: Object as PropType<IParam>,
        default: () => {}
    }
}